package com.cheer.ba.model;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.cheer.ba.view.adapter.ExpandableItemAdapter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Author: hq
 * Email: 834138841@qq.com
 * Comment: //TODO
 * Date: 2017-07-28 13:18
 */
public class AskGetMoneyModel extends AbstractExpandableItem<NextLevleModel> implements MultiItemEntity, Serializable {

    //用户ID
    public String custId;
    //昵称
    public String custNname;
    //头像
    public String custImg;
    //获利金额
    public String money;
    //下级好友数
    public int nextLevelCount;
    //下级好友列表
    private List<NextLevleModel> nextLevel;

    //我的总收益
    private String profit;
    //我的让利
    private String given;
    //邀请人数
    private String invitationCount;
    //可提取金额
    private String withdraw;

    public String getProfit() {
        return profit;
    }

    public void setProfit(String profit) {
        this.profit = profit;
    }

    public String getGiven() {
        return given;
    }

    public void setGiven(String given) {
        this.given = given;
    }

    public String getInvitationCount() {
        return invitationCount;
    }

    public void setInvitationCount(String invitationCount) {
        this.invitationCount = invitationCount;
    }

    public String getWithdraw() {
        return withdraw;
    }

    public void setWithdraw(String withdraw) {
        this.withdraw = withdraw;
    }

    public List<NextLevleModel> getNextLevel() {
        if (null == nextLevel) {
            nextLevel = new ArrayList<NextLevleModel>();
        }
        return nextLevel;
    }

    public void setNextLevel(List<NextLevleModel> nextLevel) {
        this.nextLevel = nextLevel;
    }

    @Override
    public int getLevel() {
        return 0;
    }

    @Override
    public int getItemType() {
        return ExpandableItemAdapter.TYPE_LEVEL_0;
    }
}
